<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class="no-js">
<head>
<title>注册成功</title>
<%@ include file="../mobile_inc.jsp" %>
<%@ include file="../../common_header.jsp"%>
<link href="/css/login.css" type="text/css" rel="stylesheet">
<link href="/css/global.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="/js/checkCode.js"></script>
<script type="text/javascript">
function submitForm() {  
		$('#Login').form('submit', {
			url : '${ctx }/mobile/doLogin',
			dataType : 'json',
			success : function(result) {
				var json = $.parseJSON(result);
				if (json.success == 0) {
					window.location.href = "${ctx }/mobile/";
				} else if (json.success == 13) {
					alert("用户名密码有错，请重新输入！");
					window.location.href = "${ctx }/mobile/index";
				} 
			}
		});
	}
function clearForm() {
	$('#Login').form('clear');
}
//回车
function checkInfo() {
		if (event.keyCode==13) {	
			 submitForm();
		 }	
}
function submitForm() {
	window.location.href = "${ctx }/mobile/index";
}
</script>
</head>
<body>
    <div class="login">
        <div class="login-title"><p>注册成功</p>
                <i></i>
            </div>
            <form id="Login" method="post" >
            <div class="login-bar" align="center">
            	<br>
            	<br>
                <h1>注册成功，去登录吧！</h1>
            </div>
            </form>
            <br>
            <br>
            <br>
            <br>
            <div class="login-btn">
                <a href="javascript:void(0)" onclick="submitForm()"><button class="submit" type="submit" onclick="submitForm()">去&nbsp;登&nbsp;录&nbsp;</button></a>
            </div>
            
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <div style="text-align:center;">
		
		</div>
        </div>
		
</body>
</html>
